<%@ page import="com.mastercard.labs.UserCard" %>



<div class="fieldcontain ${hasErrors(bean: userCardInstance, field: 'card', 'error')} required">
	<label for="card">
		<g:message code="userCard.card.label" default="Card" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="card" name="card.id" from="${com.mastercard.labs.Card.list()}" optionKey="id" required="" value="${userCardInstance?.card?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userCardInstance, field: 'user', 'error')} required">
	<label for="user">
		<g:message code="userCard.user.label" default="User" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="user" name="user.id" from="${com.mastercard.labs.User.list()}" optionKey="id" required="" value="${userCardInstance?.user?.id}" class="many-to-one"/>
</div>

